From: Gregory Heytings Date: Fri, 21 Aug 2020 10:44:52 +0000 (+0200) Subject: Tweak completion of Makefile targets X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~5704 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=44f6a2bba28a0b341a082a8167b3f9d2bd894340;p=emacs.git Tweak completion of Makefile targets * lisp/pcmpl-gnu.el (pcmpl-gnu-make-targets): Require that target names not be preceded by a TAG character (bug#42411). Copyright-paperwork-exempt: yes --- diff --git a/lisp/pcmpl-gnu.el b/lisp/pcmpl-gnu.el index 098aa3d5fe1..d7c5b381d29 100644 --- a/lisp/pcmpl-gnu.el +++ b/lisp/pcmpl-gnu.el @@ -118,7 +118,7 @@ Return the new list." (goto-char (point-min)) (while (re-search-forward - "^\\s-*\\([^\n#%.$][^:=\n]*\\)\\s-*:[^=]" nil t) + "^\\([^\t\n#%.$][^:=\n]*\\)\\s-*:[^=]" nil t) (setq targets (nconc (split-string (match-string-no-properties 1)) targets))) targets)